gsk: Use has_bgra in more places
authorMatthias Clasen <mclasen@redhat.com>
Fri, 20 Oct 2023 01:41:44 +0000 (21:41 -0400)
committerChristian Hergert <chergert@redhat.com>
Tue, 31 Oct 2023 20:46:32 +0000 (13:46 -0700)
commit41dbb7a757023444c457f394dc8926ae26d97245
tree959fdeb4fe1d5d1153c3718ce83a4b3cc4c2a25a
parent9c6a4c3d28371e8745254c58821d04105230c6a7
gsk: Use has_bgra in more places

The glyph and icon libaries were also checking for GLES to
decide if data needs to be transformed from BGRA to RGBA.

Use the new has_bgra getter instead.

This will probably break on bigendian, because the
GL_BGRA + GL_UNSIGNED_BYTE combination is not equivalent
to the cairo format on bigendian, but this was already
broken for the gl format information that we get from
gdk_memory_format_gl_format.
gsk/gl/gskglglyphlibrary.c
gsk/gl/gskgliconlibrary.c